import KPlayer from './player'

/**
 * 镜头.
 */
export default class KCamera {
  /**
   * 启用/禁用
   * @param player
   * @param disable
   */
  static status(player: KPlayer, disable: boolean) {
    if (disable) {
      gameapi.camera_set_move_not_enable(player.handle)
    } else {
      gameapi.camera_set_move_enable(player.handle)
    }
  }
}
